<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.customers"/></title>
</head>
<body>


<table align=center>
<tr><td><h1 ><s:text name="label.customers"/> </h1></td></tr>
</table>
	<table width=600 align=center>
	    <tr> <s:url id="insert" action="addressSetUpForInsert"/>
	         <td><s:a href="%{insert}">Click Here to Add New Address</s:a></td>
	     </tr>
	      <tr> <s:url id="insert" action="interAddressSetUpForInsert"/>
         	         <td><s:a href="%{insert}">Click Here to Add New International Address</s:a></td>
         	     </tr>
	</table><br/>
<table align=center class="borderAll">
    <tr>
           <th><s:text name="label.address.street"/></th>
           <th><s:text name="label.address.zipcode"/></th>
           <th><s:text name="label.address.addressType"/></th>
           <th><s:text name="label.address.lastUpdate"/></th>
           <th><s:text name="label.address.country"/></th>
           <th><s:text name="label.address.continent"/></th>
           <th>&nbsp;</th>
       </tr>
   <s:iterator value="interAddresses" status="status">
                <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
                    <td class="nowrap"><s:property value="street"/></td>
                    <td class="nowrap"><s:property value="zipcode"/></td>
                    <td class="nowrap"><s:property value="addressType"/></td>
                    <td class="nowrap"><s:property value="lastUpdate"/></td>
                    <td class="nowrap"><s:property value="country"/></td>
                    <td class="nowrap"><s:property value="continent"/></td>
                    <td class="nowrap">

                                 <s:url id="update" action="interAddressSetUpForUpdate">
                                             		       		   <s:param name="interAddress.addressId" value="addressId"/>
                                 </s:url>
                                 <s:a href="%{update}">Edit</s:a>
                                 &nbsp;&nbsp;&nbsp;
                                 <s:url id="delete" action="interAddressDelete">
                                   <s:param name="interAddress.addressId" value="addressId"/>
                                  </s:url>
                                  <s:a href="%{delete}">Delete</s:a>


                </tr>
        	 </s:iterator>
    </table>
</body>
</html>
